Port Security

Port security on a Cisco switch is a feature that enhances network security by controlling and restricting the number of MAC (Media Access Control) addresses that can be learned or allowed on a specific switch port. This prevents unauthorized devices from connecting to the network via switch ports.

Port Security

Configuration of Port Security

  1. Select interface and switch to access mode
  2. (config)# interface range [port]

    (config-if)# switchport mode access

  3. Enable port security
  4. (config-if)# switchport port-security

  5. Setting maximum MAC addresses
  6. (config-if)# switchport port-security maximum [number]

  7. Sticky MAC address
  8. (config-if)# switchport port-security mac-address sticky

  9. Port security violation action
  10. (config-if)# switchport port-security violation restrict

  11. Check configuration
  12. # show port-security

    # show port-security address

References